const mongoose = require('mongoose');
const Schema = mongoose.Schema;

mongoose.Promise = global.Promise;

mongoose.connect('mongodb://127.0.0.1:27017/faq');
mongoose.connection.on('connected', () => console.log('数据库连接成功。。。'))

exports.Mongoose = mongoose;
exports.User = require('./user');
exports.Question = require('./questions');
exports.Answer = require('./answer');